tool: End status line in switch/upgrade too
authorColin Walters <walters@verbum.org>
Thu, 27 Mar 2014 11:45:13 +0000 (07:45 -0400)
committerColin Walters <walters@verbum.org>
Thu, 27 Mar 2014 11:45:13 +0000 (07:45 -0400)
src/ostree/ot-admin-builtin-switch.c
src/ostree/ot-admin-builtin-upgrade.c

index d9d6ee0392f50437525f4ef8f4af71b501e07fb6..55d1fffd4d11cb41546461d733954418da853c59 100644 (file)
@@ -145,6 +145,8 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell
 
   ret = TRUE;
  out:
+  if (console)
+    gs_console_end_status_line (console, NULL, NULL);
   if (new_origin)
     g_key_file_unref (new_origin);
   if (context)
index f8527117a1ba56fb5269e66861bd444082e5e4e9..a2de168db0c0cf53dc835c3417c46459ee4b5cb0 100644 (file)
@@ -108,6 +108,8 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel
 
   ret = TRUE;
  out:
+  if (console)
+    gs_console_end_status_line (console, NULL, NULL);
   if (context)
     g_option_context_free (context);
   return ret;